import request from '@/utils/request'

export function list(query) {
  return request({
    url: 'api/tbUserGameConfig',
    method: 'get',
    params: query,
  })
}

export function add(data) {
  return request({
    url: 'api/tbUserGameConfig',
    method: 'post',
    data: data,
  })
}

export function del(id) {
  return request({
    url: 'api/tbUserGameConfig/' + id,
    method: 'delete',
    data: query,
  })
}

export function edit(data) {
  return request({
    url: 'api/tbUserGameConfig',
    method: 'put',
    data: data,
  })
}
